package ch6;

import java.io.*;

public class FileReadLine {

	public static void main(String[] args) throws IOException {
		// 用缓冲的方式 读取一行
		// 包装类：
		BufferedReader br = new BufferedReader(new FileReader("E:\\hadoop_test.txt"));
		String line = null;
		while ((line = br.readLine()) != null) {
			System.out.println(line.length() + ":" + line);
		}

		br.close();
	}

}
